package cn.gson.school.dao.jiaoxue;

import java.util.List;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;

import cn.gson.school.entity.jiaoxue.ClassEntity;

@Repository
public interface ClassDao extends CrudRepository<ClassEntity, Long> {
	ClassEntity findByClassName(String className);
	
	@Query(value="from ClassEntity where is_delete=?")
	public List<ClassEntity> findByDelete(Integer delete);
}
